<me:UIERK x:Class="WPFExcelReport.UBTFERK"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                     xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                      xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                      xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                     FontSize="18"
                     x:Name="TV"
                    Loaded="Window_Loaded">
    <me:UIERK.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key="trim"/>
    </me:UIERK.Resources>
    <Grid Visibility="{Binding IsUBT,ElementName=TV,Converter={StaticResource bv}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0" Visibility="Collapsed">
            <ex:TXT72 PRE="000" MaxLength="3" Text="{Binding EXAUF,ElementName=sKey}" Width="100"/>
            <me:K0267 x:Name="sKey" KEY="{Binding KEY,ElementName=TV}" Visibility="Collapsed" />
            <Button  Click="NewCommand" Width="150" Height="40" FontSize="19">
                <Button.Content>
                    <StackPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=确认:}}"/>
                        <Label Content="{Binding SDES,ElementName=sKey,Converter={StaticResource gb2312}}" 
                               HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center" Padding="0" />
                    </StackPanel>
                </Button.Content>
            </Button>
        </WrapPanel>
        <Grid Grid.Row="1"  Visibility="{Binding IsChkAll,ElementName=TV,Converter={StaticResource nbv}}"  Width="595">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="113"/>
                <ColumnDefinition Width="113"/>
                <ColumnDefinition Width="113"/>
                <ColumnDefinition Width="113"/>
                <ColumnDefinition Width="113"/>
                <ColumnDefinition Width="30"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <me:KB267 LMS="52" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="0" Grid.Column="0" />
            <me:KB267 LMS="53" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="0" Grid.Column="1" />
            <me:KB267 LMS="54" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="0" Grid.Column="2" />
            <me:KB267 LMS="55" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="0" Grid.Column="3" />
            <me:KB267 LMS="56" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="0" Grid.Column="4" />
            <me:KB267 LMS="57" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="1" Grid.Column="0" />
            <me:KB267 LMS="58" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="1" Grid.Column="1" />
            <me:KB267 LMS="59" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="1" Grid.Column="2" />
            <me:KB267 LMS="60" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="1" Grid.Column="3" />
            <me:KB267 LMS="61" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="1" Grid.Column="4" />
            <me:KB267 LMS="62" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="2" Grid.Column="0" />
            <me:KB267 LMS="63" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="2" Grid.Column="1" />
            <me:KB267 LMS="64" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="2" Grid.Column="2" />
            <me:KB267 LMS="65" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="2" Grid.Column="3" />
            <me:KB267 LMS="66" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="2" Grid.Column="4" />
            <me:KB267 LMS="67" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="3" Grid.Column="0" />
            <me:KB267 LMS="68" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="3" Grid.Column="1" />
            <me:KB267 LMS="69" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="3" Grid.Column="2" />
            <me:KB267 LMS="70" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="3" Grid.Column="3" />
            <me:KB267 LMS="71" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="3" Grid.Column="4" />
            <me:KB267 LMS="72" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="4" Grid.Column="0" />
            <me:KB267 LMS="73" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="4" Grid.Column="1" />
            <me:KB267 LMS="74" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="4" Grid.Column="2" />
            <me:KB267 LMS="75" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="4" Grid.Column="3" />
            <me:KB267 LMS="76" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="4" Grid.Column="4" />
            <me:KB267 LMS="77" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="5" Grid.Column="0" />
            <me:KB267 LMS="78" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="5" Grid.Column="1" />
            <me:KB267 LMS="79" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="5" Grid.Column="2" />
            <me:KB267 LMS="80" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="5" Grid.Column="3" />
            <me:KB267 LMS="81" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="5" Grid.Column="4" />
            <me:KB267 LMS="82" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="6" Grid.Column="0" />
            <me:KB267 LMS="83" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="6" Grid.Column="1" />
            <me:KB267 LMS="84" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="6" Grid.Column="2" />
            <me:KB267 LMS="85" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="6" Grid.Column="3" />
            <me:KB267 LMS="86" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="6" Grid.Column="4" />
            <me:KB267 LMS="87" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="7" Grid.Column="0" />
            <me:KB267 LMS="88" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="7" Grid.Column="1" />
            <me:KB267 LMS="89" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="7" Grid.Column="2" />
            <me:KB267 LMS="90" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="7" Grid.Column="3" />
            <me:KB267 LMS="91" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="7" Grid.Column="4" />
            <me:KB267 LMS="92" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="8" Grid.Column="0" />
            <me:KB267 LMS="93" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="8" Grid.Column="1" />
            <me:KB267 LMS="94" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="8" Grid.Column="2" />
            <me:KB267 LMS="95" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="8" Grid.Column="3" />
            <me:KB267 LMS="96" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="8" Grid.Column="4" />
            <me:KB267 LMS="97" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0" Grid.Row="9" Grid.Column="0" />
            <me:KB267 LMS="98" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="9" Grid.Column="1" />
            <me:KB267 LMS="99" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="9" Grid.Column="2" />
            <me:KB267 LMS="100" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="9" Grid.Column="3" />
            <me:KB267 LMS="101" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,8" Grid.Row="9" Grid.Column="4" />
        </Grid>
        <StackPanel   Grid.Row="1" Visibility="{Binding IsChkAll,ElementName=TV,Converter={StaticResource bv}}"   Width="482">           
            <WrapPanel >
                <me:KB267 LMS="106" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="107" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="108" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="109" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
              
                <me:KB267 LMS="110" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="111" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="112" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="113" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
               
                <me:KB267 LMS="114" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="115" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="116" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="117" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
            </WrapPanel>
           
            <WrapPanel Margin="0,5,0,0">
                <me:KB267 LMS="118" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="119" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="120" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="121" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0">
              
                <me:KB267 LMS="122" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="123" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="124" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="125" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0" >
              
                <me:KB267 LMS="126" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
           
                <me:KB267 LMS="127" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="128" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="129" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
            </WrapPanel>
            <WrapPanel Margin="0,5,0,0" >
                <me:KB267 LMS="130" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="131" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
                <me:KB267 LMS="132" EKEY="{Binding EKEY,ElementName=TV}"  Margin="8,0,0,0"  />
            </WrapPanel>
        </StackPanel>
        
    </Grid>
</me:UIERK>
